package com.ruoyi.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 我的设备对象 jt_my_devices
 * 
 * @author Alan Zhang
 * @date 2025-03-29
 */
public class JtMyDevices extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 国家码id */
    private Long deviceId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 电量 */
    @Excel(name = "电量")
    private String electricQuantity;

    /** 设备码 */
    @Excel(name = "设备码")
    private String deviceSn;

    /** 设备状态 1正常 2低电量 3过载 4温度异常 */
    @Excel(name = "设备状态 1正常 2低电量 3过载 4温度异常")
    private Integer deviceStatus;

    /** 设备是否在线 */
    @Excel(name = "设备是否在线")
    private Integer deviceOnline;

    /** 设备信息 */
    @Excel(name = "设备信息")
    private String deviceMsg;

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setElectricQuantity(String electricQuantity) 
    {
        this.electricQuantity = electricQuantity;
    }

    public String getElectricQuantity() 
    {
        return electricQuantity;
    }

    public void setDeviceSn(String deviceSn) 
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn() 
    {
        return deviceSn;
    }

    public void setDeviceStatus(Integer deviceStatus) 
    {
        this.deviceStatus = deviceStatus;
    }

    public Integer getDeviceStatus() 
    {
        return deviceStatus;
    }

    public void setDeviceOnline(Integer deviceOnline) 
    {
        this.deviceOnline = deviceOnline;
    }

    public Integer getDeviceOnline() 
    {
        return deviceOnline;
    }

    public void setDeviceMsg(String deviceMsg) 
    {
        this.deviceMsg = deviceMsg;
    }

    public String getDeviceMsg() 
    {
        return deviceMsg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("electricQuantity", getElectricQuantity())
            .append("deviceSn", getDeviceSn())
            .append("deviceStatus", getDeviceStatus())
            .append("deviceOnline", getDeviceOnline())
            .append("deviceMsg", getDeviceMsg())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
